package utils

//错误描述

//ErrorEnum 错误枚举类型
type ErrorEnum struct {
	Code int
	Msg  string
}

//LoseParam 缺少参数错误
func LoseParam(name string) ErrorEnum {
	return ErrorEnum{Code: 1001, Msg: "缺少参数" + name}
}

//NotFoundSid 未找到供应商信息
var NotFoundSid = ErrorEnum{Code: 1001, Msg: "缺少使用者数据"}

//UnmarshalError 数据解析失败
var UnmarshalError = ErrorEnum{Code: 618, Msg: "数据解析失败"}

//NoPower 权限不够
var NoPower = ErrorEnum{Code: 403, Msg: "无权进行此操作"}

//NotFoundOrder 未找到先关订单
var NotFoundOrder = ErrorEnum{Code: 1002, Msg: "未找到先关订单"}
